<?php
class first_class{
var $name = "harry";
function setName($nme){
$this->name = $nme;
}
function sayHello(){
echo "hello my name is $this->name<br>";
}
}
$obj1 = new first_class();
$obj1->setName("Sabaw");
$obj1->sayHello();
?>